﻿#pragma warning disable 649    // disable compiler warnings about unassigned fields

namespace CARE.Web.db
{
    using System;
    using System.Collections.Generic;
    using System.ComponentModel;
    using System.ComponentModel.DataAnnotations;
    using System.Linq;
    using System.Web.Ria;
    using System.Web.Ria.Data;
    using System.Web.DomainServices;
    using System.Xml.Linq;
    using System.Data.Linq;


    // The MetadataTypeAttribute identifies DiseaseMetadata as the class
    // that carries additional metadata for the Disease class.
    [MetadataTypeAttribute(typeof(Disease.DiseaseMetadata))]
    public partial class Disease
    {

        // This class allows you to attach custom attributes to properties
        // of the Disease class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class DiseaseMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private DiseaseMetadata()
            {
            }

            public XElement data;

            public string description;

            public string name;
        }
    }

    // The MetadataTypeAttribute identifies EdgeMetadata as the class
    // that carries additional metadata for the Edge class.
    [MetadataTypeAttribute(typeof(Edge.EdgeMetadata))]
    public partial class Edge
    {

        // This class allows you to attach custom attributes to properties
        // of the Edge class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class EdgeMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private EdgeMetadata()
            {
            }

            public int edgeID;

            public int leftNodeID;

            public Net Net;

            public int netID;

            public Node Node;

            public Node Node1;

            public int rightNodeID;
        }
    }

    // The MetadataTypeAttribute identifies FormMetadata as the class
    // that carries additional metadata for the Form class.
    [MetadataTypeAttribute(typeof(Form.FormMetadata))]
    public partial class Form
    {

        // This class allows you to attach custom attributes to properties
        // of the Form class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class FormMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private FormMetadata()
            {
            }

            public string data;

            public FormTemplate FormTemplate;

            public int id;

            public string name;

            public int status;

            public int template;
        }
    }

    // The MetadataTypeAttribute identifies FormTemplateMetadata as the class
    // that carries additional metadata for the FormTemplate class.
    [MetadataTypeAttribute(typeof(FormTemplate.FormTemplateMetadata))]
    public partial class FormTemplate
    {

        // This class allows you to attach custom attributes to properties
        // of the FormTemplate class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class FormTemplateMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private FormTemplateMetadata()
            {
            }

            public string data;

            public EntitySet<Form> Forms;

            public int id;

            public string name;
        }
    }

    // The MetadataTypeAttribute identifies ImageMetadata as the class
    // that carries additional metadata for the Image class.
    [MetadataTypeAttribute(typeof(Image.ImageMetadata))]
    public partial class Image
    {

        // This class allows you to attach custom attributes to properties
        // of the Image class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class ImageMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private ImageMetadata()
            {
            }

            public Binary data;

            public int id;

            public Node Node;
        }
    }

    // The MetadataTypeAttribute identifies NetMetadata as the class
    // that carries additional metadata for the Net class.
    [MetadataTypeAttribute(typeof(Net.NetMetadata))]
    public partial class Net
    {

        // This class allows you to attach custom attributes to properties
        // of the Net class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class NetMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private NetMetadata()
            {
            }

            public EntitySet<Edge> Edges;

            public string netData;

            public int netID;

            public string netName;
        }
    }

    // The MetadataTypeAttribute identifies NodeMetadata as the class
    // that carries additional metadata for the Node class.
    [MetadataTypeAttribute(typeof(Node.NodeMetadata))]
    public partial class Node
    {

        // This class allows you to attach custom attributes to properties
        // of the Node class.
        //
        // For example, the following marks the Xyz property as a
        // required field and specifies the format for valid values:
        //    [Required]
        //    [RegularExpression("[A-Z][A-Za-z0-9]*")]
        //    [StringLength(32)]
        //    public string Xyz;
        internal sealed class NodeMetadata
        {

            // Metadata classes are not meant to be instantiated.
            private NodeMetadata()
            {
            }

            public Nullable<DateTime> birthdate;

            public string country;

            public EntitySet<Edge> Edges;

            public EntitySet<Edge> Edges1;

            public Nullable<int> image;

            public Image Image1;

            public Nullable<double> latitude;

            public Nullable<double> longitude;

            public string name;

            public int nodeID;

            public string postalcode;

            public string street;

            public string surname;

            public string town;
        }
    }
}

#pragma warning restore 649    // re-enable compiler warnings about unassigned fields
